package caiziyou.com.designpattern.mediator.smarthouse;

public abstract class Colleague {

	private Mediator mediator;
	private String name;

	public Colleague(Mediator mediator, String name) {
		super();
		this.mediator = mediator;
		this.name = name;
	}

	public Mediator getMediator() {
		return mediator;
	}

	public void setMediator(Mediator mediator) {
		this.mediator = mediator;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public abstract void sendMessage(int stateChange);

}
